﻿namespace PhoneUtils.Services
{
    using Funq;

    /// <summary>
    /// Static class, which provide an instance of a Funq container.
    /// </summary>
    public static class ContainerLocator
    {
        /// <summary>
        /// Gets the current Funq container.
        /// </summary>
        public static Container Current { get; private set; }

        /// <summary>
        /// Sets the current funq container.
        /// </summary>
        /// <param name="container">The container to set.</param>
        public static void SetContainer(Container container)
        {
            Current = container;
        }
    }
}
